package org.lzy.shop.response

class OrderResponse{
     var list: MutableList<List>? = null


    class List {
        var id: Int = 0
        //订单建立时间
        var createTime: String? = null
        var updateTime: String? = null
        var userId: Int = 0
        //订单标题
        var title: String? = null
        var payType: Int = 0
        var payTime: Any? = null
        //订单数量
        var orderNum: String? = null
        //订单状态
        var status: Int?=null
        //订单价格
        var price: Int = 0
        var discountPrice: Int = 0
        var realPrice: String? = null
        var discountSource: Any? = null
        //订单用户所在的地址
        var address: Address? = null
        var logistics: Any? = null
        var refund: Any? = null
        var refundStatus: Any? = null
        var refundApplyTime: Any? = null
        var remark: String? = null
        var closeRemark: Any? = null
        var invoice: Int = 0
        var wxType: Int = 0
        //订单商品数组
        var goodsList: MutableList<GoodsList>? = null

        class Address {
            var id: Int = 0
            var createTime: String? = null
            var updateTime: String? = null
            var userId: Int = 0
            var contact: String? = null
            var phone: String? = null
            var province: String? = null
            var city: String? = null
            var district: String? = null
            var address: String? = null
            var isIsDefault: Boolean = false
                private set

            fun setIsDefault(isDefault: Boolean) {
                this.isIsDefault = isDefault
            }
        }

        class GoodsList {
            var id: Int = 0
            var createTime: String? = null
            var updateTime: String? = null
            var orderId: Int = 0
            var goodsId: Int = 0
            var price: Int = 0
            var discountPrice: Int = 0
            val count: Int? = null
            var remark: Any? = null
            var goodsInfo: GoodsInfo? = null
            var spec: Spec? = null
            var isComment: Int = 0


            class GoodsInfo {
                var id: Int = 0
                var createTime: String? = null
                var updateTime: String? = null
                var typeId: Int = 0
                var title: String? = null
                var subTitle: String? = null
                var mainPic: String=""
                var pics: MutableList<String>? = null
                var price: Int?=null
                var sold: Int?=null
                var content: String? = null
                var recommend: Any? = null
                var featured: Any? = null
                var status: Int?=null
                var sortNum: Int?=null
                var specs: MutableList<*>? = null
            }

            class Spec {
                var id: Int = 0
                var createTime: String? = null
                var updateTime: String? = null
                var goodsId: Int = 0
                var name: String? = null
                var price: Int = 0
                var stock: Int = 0
                var sortNum: Int = 0
                var images: MutableList<String>? = null
            }
        }
    }
 }
